<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home</title>
<lui:context/>
</head>
<u:View basePath="/res-system/platform" res="lui.datatable,kindeditor" userJS="platform" delayLoadJs="false">
    <body>
    	<lui:ajax id="queryListAjax" autoSend="true" url="${pageContext.request.contextPath}/sys/menu/findAll"/>
        <table id="datatable" width="100%" border="1">
        </table>
        <div style='background-color: #EFEFEF;width:120px; height:180px;'>
            <textarea id="editor_id" name="content" style="width:700px;height:300px;">
            &lt;strong&gt;HTML内容&lt;/strong&gt;
            </textarea>
        </div>
    </body>
</u:View>
<script type="text/javascript">
KindEditor.ready(function(K) {
    window.editor = K.create('#editor_id');
});

$(document).ready(function() {
     /* var data = [
            {
                "name":       "Tiger Nixon",
                "position":   "System Architect",
                "salary":     "$3,120",
                "start_date": "2011/04/25",
                "office":     "Edinburgh",
                "extn":       "5421"
            },
            {
                "name":       "Garrett Winters",
                "position":   "Director",
                "salary":     "$5,300",
                "start_date": "2011/07/25",
                "office":     "Edinburgh",
                "extn":       "8422"
            }
        ];
    $("#datatable").datatable({
        "data":data,
        "columns": [
            {"data": "name","title":"Name"},
            {"data": "position","title":"Position"},
            {"data": "salary","title":"Salary"},
            {"data": "start_date","title":"Date"},
            {"data": "office","title":"Office"},
            {"data": "extn","title":"Other"}
        ],
        "showLineNumber":true
    }); */
});
</script>
</html>